{include file='header.tpl'}
<form method="post" action="{geturl action='create'}">
<fieldset id="create-circle">
<legend>创建圈子</legend>
{if $fp->hasError()}
<p>出现错误：</p>
{/if}
<div class="row">
<label for="circle_name">圈子名称</label>
<input id="circle_name" type="text" name="circlename" value="{$fp->circlename}" />
{include file='lib/error.tpl' error=$fp->getError('circlename')}
</div>

<div class="row">
<label for="circle_description">圈子描述</label>
<textarea id="circle_description" cols="30" rows="5" name="description">{$fp->description}</textarea>
{include file='lib/error.tpl' error=$fp->getError('description')}
</div>

<div class="row">
<label for="circle_limit">身份验证</label>
<input id="circle_limit" type="radio" name="limit" value="0" checked="checked" />允许任何人加入
<input id="circle_limit" type="radio" name="limit" value="1" />身份验证后加入
<input id="circle_limit" type="radio" name="limit" value="2" />不允许任何人加入
</div>

<div>
<input class="submit" type="submit" name="submit" value="创建" />
</fieldset>
</form>
{include file='footer.tpl'}